var fs = Require('fs');

var arr = new Array();


for(var i= 1; i<=100;i++){
    var data= fs.readfilesync(i+'.txt');
    arr[i-1] = data.tostring();
    console.log("同步读取 :" + i +"个" + arr[i-1]);

}

var max = 0;
for(var j = 0 ; j<arr.length-1; j++ ){
    if(max<arr[j]){
        max = arr[j]
    }
}
console.log("最大值"+max);